/**
 * 
 */
package cn.hbu.zlfw.admin.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.hbu.zlfw.admin.dao.ExpertDao;
import cn.hbu.zlfw.admin.entity.Expert;
import cn.hbu.zlfw.admin.entity.Expert;
import cn.hbu.zlfw.admin.service.ExpertService;
import cn.hbu.zlfw.common.base.service.impl.BaseServiceImpl;
import cn.hbu.zlfw.common.util.PageModel;
import cn.hbu.zlfw.research.entity.Researcher;

/**
 * @ClassName: ExpertServiceImpl
 * @Description: 专家service接口实现
 * @author tiddar
 * @date 2018年8月9日
 *
 */
@Service("expertService")
@Transactional
public class ExpertServiceImpl extends BaseServiceImpl<Expert, String> implements ExpertService {
	@Autowired
	private ExpertDao expertDao;

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * cn.hbu.zlfw.admin.service.ExpertService#getExpertByParam(java.
	 * util.Map)
	 */
	@Override
	public Expert getExpertByParam(Map<String, Object> params) {
		return this.expertDao.getExpertByParam(params);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * cn.hbu.zlfw.admin.service.ExpertService#listAllScienceByParamsToUnit(
	 * cn.hbu.zlfw.common.util.PageModel, java.lang.String, java.lang.Integer)
	 */
	@Override
	public PageModel<Expert> listAllScienceByParamsToUnit(PageModel<Expert> pageModel, String userName,
			Integer schoolType) {
		return this.expertDao.listAllScienceByParamsToUnit(pageModel, userName, schoolType);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.hbu.zlfw.admin.service.ExpertService#
	 * listExpertByParamsToUnit(java.lang.String, java.lang.String,
	 * java.lang.Integer)
	 */
	@Override
	public PageModel<Expert> listExpertByParamsToUnit(PageModel<Expert> pageModel, String userName,
			String department, Integer schoolType) {
		return this.expertDao.listExpertByParamsToUnit(pageModel, userName, department, schoolType);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * cn.hbu.zlfw.admin.service.ExpertService#getExpertToUpdate(java.
	 * lang.String, java.lang.String)
	 */
	@Override
	public Expert getExpertToUpdate(String phoneNumber, String id) {
		return this.expertDao.getExpertToUpdate(phoneNumber, id);
	}

	/* (non-Javadoc)
	 * @see cn.hbu.zlfw.admin.service.ExpertService#findExpertTologin(java.lang.String, java.lang.String)
	 */
	@Override
	public Researcher findExpertTologin(String phoneNumber, String password) {
		// TODO Auto-generated method stub
		return null;
	}
}